package km.TestDialog;

import android.app.*;
import android.content.*;
import android.content.DialogInterface.*;
import android.util.*;
import android.view.*;
import android.view.View.OnClickListener;
import android.view.ViewGroup.*;
import android.widget.*;

public class AlertDial extends Dialog implements OnClickListener{

	private Context mContext;
    public static final int WC = ViewGroup.LayoutParams.WRAP_CONTENT;
    public static final int MP = ViewGroup.LayoutParams.MATCH_PARENT;
	protected AlertDial(Context context) {
		super(context);
		mContext =context;
//		LayoutInflater factory = LayoutInflater.from(mContext);
//		final View textEntryView = factory.inflate(R.layout.alert_dialog_text_entry, null);
//		addContentView(textEntryView, new LayoutParams(MP, MP));
		 requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.alert_dialog_text_entry);
		Button btn = (Button)findViewById(R.id.Button01);
		btn.setOnClickListener(this);
		
	}
@Override
public View onCreatePanelView(int featureId) {
	Log.e("", "onCreatePanelView>>>>");
//	LayoutInflater factory = LayoutInflater.from(mContext);
//	final View textEntryView = factory.inflate(R.layout.alert_dialog_text_entry, null);
//	return textEntryView;
	return super.onCreatePanelView(R.layout.alert_dialog_text_entry);
}
public void onClick(View v) {
	// TODO Auto-generated method stub
	dismiss();
}
}
